package com.music.music.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.music.common.core.annotation.Excel;
import com.music.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 用户评论对象 comment
 *
 * @author ruoyi
 * @date 2024-10-22
 */
public class Comment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 音乐id
     */
    @Excel(name = "音乐id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long commentMusicId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long commentUserId;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    private String commentContent;

    /**
     * 评分
     */
    @Excel(name = "评分")
    private Integer commentScore;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentCreateTime;

    public Long getCommentMusicId() {
        return commentMusicId;
    }

    public void setCommentMusicId(Long commentMusicId) {
        this.commentMusicId = commentMusicId;
    }

    public Long getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Long commentUserId) {
        this.commentUserId = commentUserId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getCommentScore() {
        return commentScore;
    }

    public void setCommentScore(Integer commentScore) {
        this.commentScore = commentScore;
    }

    public Date getCommentCreateTime() {
        return commentCreateTime;
    }

    public void setCommentCreateTime(Date commentCreateTime) {
        this.commentCreateTime = commentCreateTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentMusicId=" + commentMusicId +
                ", commentUserId=" + commentUserId +
                ", commentContent='" + commentContent + '\'' +
                ", commentScore=" + commentScore +
                ", commentCreateTime=" + commentCreateTime +
                '}';
    }
}

